package com.kfm.goods.ex;

public class ServiceException extends Exception {

    /**
     * 错误码
     *  1001: 用户名或密码错误
      */
    private int code;

    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }


    public int getCode() {
        return code;
    }
}
